from django import forms
from .models import ChatGroup, Report, Member


class ChatGroupForm(forms.ModelForm):
	class Meta:
		model = ChatGroup
		fields = ['name', 'password', 'introduce']
		labels = {'name': '名称', 'password': '密码', 'introduce': '简介'}
		widgets = {
			'password': forms.TextInput(attrs={'col': 80}),
			'introduce': forms.Textarea()
		}


class ReportForm(forms.ModelForm):
	class Meta:
		model = Report
		fields = ['value']
		labels = {'value': ''}
		widgets = {
			'value': forms.TextInput(attrs={'style': 'width:80vw;', 'autocomplete': 'off'})
		}


class MemberFrom(forms.ModelForm):
	class Meta:
		model = Member
		fields = []
		label = {}
